package com.jt.www.common.service;


import com.github.pagehelper.Page;
import com.jt.www.model.correct.ApproveHistoryEntity;
import com.jt.www.model.correct.CorrectRecordEntity;
import com.jt.www.model.correct.vo.ApproveParam;
import com.jt.www.model.correct.vo.CorrectionVoucherStatusVO;
import com.jt.www.model.reps.GenericListResponse;
import com.jt.www.model.reps.GenericResponse;
import com.jt.www.model.torectify.vo.CorrectListParam;
import com.jt.www.model.torectify.vo.IntertemporalParam;
import org.springframework.http.ResponseEntity;

public interface CorrectService {
    void pushCorrect(CorrectRecordEntity param);

    public ResponseEntity isIntertemporal(String findCode, String correctNo,IntertemporalParam intertemporalParam)throws Exception;


    void updateCorrect(CorrectRecordEntity param);

    CorrectRecordEntity queryById(Long id);

    ApproveHistoryEntity queryApproveById(Long id);

    Boolean isApproval(String sysChannelCode, String correctNo);

    GenericListResponse<CorrectionVoucherStatusVO> queryVoucher(String correctNo, String policyType, String correctType);

    Page queryByCondition(CorrectListParam correctListParam, String approveNot);

    Page queryExamineByCondition(CorrectListParam correctListParam, String approveNot);

    boolean checkChannel(Long connectId, String sysChannel);

    void approve(String sysChannelCode, String correctNoId, ApproveParam approveParam, String issueType);

    ResponseEntity<GenericResponse> isRecordAppCode(String appCode);

    ResponseEntity<GenericResponse> selectAppCodeStatus(String appCode);

}
